package net.cathackers.devel.scmp.search.impl;

import net.cathackers.devel.exceptions.CATException;
import net.cathackers.devel.scmp.interfaces.Envelope;
import net.cathackers.devel.scmp.interfaces.ServiceManager;
import net.cathackers.devel.scmp.interfaces.ServiceType;

public class SearchServiceManager implements ServiceManager {
    //Google integration....
    static String __GUID__ = "844e39a4-59e2-41e4-9348-812773be0295";
    static String __name__ = "search";
    @Override
    public String getGUID() {
	// TODO Auto-generated method stub
	return __GUID__;
    }

    @Override
    public ServiceType getServiceType() {
	return ServiceType.SEARCH;
    }

    @Override
    public void shutdown() {
	// TODO properly disconnect from Google.
    }

    @Override
    public void handle(Envelope envelope) throws CATException {
	// we expect the search string in this class...
    }

    @Override
    public void initialize() throws CATException {
	
    }

    @Override
    public String getName() {
	return __name__;
    }

    @Override
    public void registerNewServiceManagerCallBack() {
	// ignore...
    }

    @Override
    public void unregisterServiceManagerCallBack() {
	// ignore...
    }

}
